home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / source / ndelay.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-15  |  152 b   |  10 lines

  1. #include <sys/types.h>
  2. #include <fcntl.h>
  3. #include "ndelay.h"
  4.  
  5. int ndelay_on(fd)
  6. int fd;
  7. {
  8.   return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NDELAY);
  9. }
  10.